//
//  L_TItleView.m
//  音悦咖
//
//  Created by dllo on 15/7/15.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "L_TItleView.h"

@implementation L_TItleView

- (void)dealloc
{
    [_leftImage release];
    [_label release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}


- (void)createView
{
    // 创建ImageView
    self.leftImage = [[UIImageView alloc] initWithFrame:CGRectMake(10, 5, 20, self.frame.size.height - 10)];
//    self.leftImage.backgroundColor = [UIColor orangeColor];
    self.leftImage.image = [UIImage imageNamed:@"biaoti.png"];
    [self addSubview:self.leftImage];
    [self.leftImage release];
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(40, 5, self.frame.size.width / 5 * 3, self.frame.size.height - 10)];
    self.label.textColor = [UIColor whiteColor];
//    self.label.backgroundColor = [UIColor orangeColor];
    [self addSubview:self.label];
    [self.label release];
    
}

@end
